package com.mailsystem.www.controller;

import com.mailsystem.www.model.Users;
import com.mailsystem.www.service.UserService;
import com.mailsystem.www.service.UserServiceImpl;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.annotation.*;
import java.io.IOException;
import java.io.PrintWriter;

/**
 * @author Administrator
 */
@WebServlet(value = "/userServlet")
public class UserServlet extends BaseServlet {
    UserService service = new UserServiceImpl();

    public void login(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        service.login(request,response);
    }


    protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        this.doPost(request,response);
    }
}
